﻿/*
 *  @include "wsh-doc.js"
 *  @include "fso-doc.js"
 */
 
 
 

/**
 * 
 * @return WScript
 */
function wshCreateWScript() {
	return WScript;
}

/**
 * 
 * @return FileSystemObject
 */
function wshCreateFileSystemObject() {
	return new ActiveXObject("Scripting.FileSystemObject");
}

/**
 * @type WshShell
 * @return WshShell
 */
function wshCreateShell() {
	return new ActiveXObject("WScript.Shell");
}

function wshEnumerate(o, fn) {
	var e = new Enumerator(o);
	for (; !e.atEnd(); e.moveNext()) {
		if (!fn(e.item())) {
			return;
		}
	}
}